package com.trover.myapplication

import com.trover.myapplication.core.util.CoroutinesDispatcherProvider
import com.trover.myapplication.ui.home.HomeRepository
import com.trover.myapplication.ui.home.HomeViewModel
import com.trover.myapplication.ui.login.LoginRepository
import com.trover.myapplication.ui.login.LoginViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module

val viewModelModule = module {
    viewModel { HomeViewModel(get(), get()) }
    viewModel { LoginViewModel(get(), get()) }
}

val repositoryModule = module {
    single { CoroutinesDispatcherProvider() }
    single { HomeRepository() }
    single { LoginRepository() }
}

val appModule = listOf(viewModelModule, repositoryModule)